gdk: Clear GL context when window is withdrawn
authorAndrea Azzarone <andrea.azzarone@canonical.com>
Wed, 25 Oct 2017 13:37:36 +0000 (09:37 -0400)
committerKen VanDine <kvandine@gnome.org>
Wed, 25 Oct 2017 13:37:36 +0000 (09:37 -0400)
commitb6c41e57e2b4c81d82fe14a57cd8a9c2f2ac0c6a
treeec59a65a3f585301bc725b24bda6686aa009ebe2
parent0d82de585cf6e6c4205f6238db27712726640b0e
gdk: Clear GL context when window is withdrawn

Some clients (e.g. gnome-online-accounts) quickly unmap and map
a window. With some backends the backend surface will be replaced
causing the application to crash because the GL context is still
using the old surface. Clearing the GL context when a window is
withdrawn fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=789141
gdk/gdkwindow.c